package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;

import java.util.List;

/**
 * @Name DishService
 * @Author stella
 * @Date 2023-03-05 11:07 AM
 */
public interface DishService {
    //菜品列表
    //分页菜品条件查询
    Page<Dish> findByPage(Integer pageNum, Integer pageSize, String name);

    //新增菜品
    void save(Dish dish);

    //菜品修改：回显菜品详情
    Dish findById(Long id);

    //修改菜品/口味
    void update(Dish dish);

    //根据菜品id批量启停售
    void updateStatus(Integer status, List<Long> ids);

    //根据菜品id批量删除
    void deleteBatchId(List<Long> ids);

    //根据分类id回显菜品列表
    List<Dish> findList(Long categoryId, String name);

    //根据分类id状态查询
    List<Dish> findByCategoryId(Long categoryId, Integer status);
}
